<?php

class MoneyFormat{
	public static function format($number){
		$number = number_format($number, 3, ",", ".");
		$number = rtrim($number, "0");
		$number = rtrim($number, ",");

		return $number;
	}
}